/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.tkgarment.system.inf;

import java.util.List;

/**
 *
 * @author zraj
 * @param <T> domain class
 * @param <TypeOfID>
 */
public interface IDAO<T,TypeOfID> {
    public List<T> getAll() throws Exception;
    public int updateSingle(T t,TypeOfID id) throws Exception;
    public int deleteSingle(T t) throws Exception;
    public int insertSingle(T t) throws Exception;
    public T getById(TypeOfID id)throws Exception;
}
